package com.andox.fn.inf.rpc.rest.extension;

import java.util.Map;
import java.util.Set;

import com.google.common.collect.Maps;

public abstract class ObjectFactory<T> {
	protected Map<String, T> table = Maps.newHashMap();
	
	public Set<String> getIdentitys(){ return table.keySet(); }
	public T getObject(String id) { return table.get(id);};
	
	public abstract T getDefault();
	protected abstract void init();
}
